package idiet.action;

import idiet.dialog.DialogAddNurseTarget;
import idiet.dialog.DialogAddUnit;

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;

public class ActionAddNurseTarget implements IWorkbenchWindowActionDelegate {
	private  IWorkbenchWindow window;
	private DialogAddNurseTarget dialogAddNurseTarget;
	@Override
	public void run(IAction action) {
		// TODO Auto-generated method stub
		this.dialogAddNurseTarget=new DialogAddNurseTarget(this.window.getShell());
		this.dialogAddNurseTarget.create();
		this.dialogAddNurseTarget.open();
	}

	@Override
	public void selectionChanged(IAction action, ISelection selection) {
		// TODO Auto-generated method stub

	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub
		this.window=null;
	}

	@Override
	public void init(IWorkbenchWindow window) {
		// TODO Auto-generated method stub
		this.window=window;
	}

}
